package com.kris.dev2;

import com.alibaba.fastjson.JSONObject;

public class Main {

	
	public static void main(String[] args) {
		
		JSONObject json = new JSONObject();
		json.put("st", "么有");
		
		System.out.println(Main.isJson(json.get("st").toString()));
		
	}
	
	public static boolean isJson(String obj){
		try {
			JSONObject.parse(obj);
			return true;
		} catch (Exception e) {
			return false;
		}
	}
	

	
	static void swip(int x,int y){
		int tmp = x;
		x = y;
		y = tmp;
		System.out.println("x:"+x);
		System.out.println("y:"+y);
	}
}
